From 0f120ea5101f9f47212b0afd583e9469187b1e0f Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 9 Jan 2016 17:24:12 +0800 Subject: [PATCH] Cast the return value of g_array_free to void* before casting to char** Let the compiler know that we don't want to use it as char*, so there is no alignment error. https://bugzilla.gnome.org/show_bug.cgi?id=760350 https://bugzilla.gnome.org/show_bug.cgi?id=755659 --- gtk/gtkactionmuxer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c index 643aeb3190..d8edef0e78 100644 --- a/gtk/gtkactionmuxer.c +++ b/gtk/gtkactionmuxer.c @@ -138,7 +138,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group) actions); } - return (gchar **) g_array_free (actions, FALSE); + return (gchar **)(void *) g_array_free (actions, FALSE); } static Group * -- 2.30.2